import { createApp } from 'vue'
import { createPinia } from 'pinia'
import router from './router'
import App from './app.vue'
import './styles/index.css'

// 导入 Font Awesome
import { library } from '@fortawesome/fontawesome-svg-core'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import { faUpload, faPaperPlane, faSpinner, faRobot, faFolderOpen, faFileArrowDown, faChartPie, faTrashCan, faSearch, faPlay, faDownload, faTrash } from '@fortawesome/free-solid-svg-icons'

// 添加图标到库
library.add(faUpload, faPaperPlane, faSpinner, faRobot, faFolderOpen, faFileArrowDown, faChartPie, faTrashCan, faSearch, faPlay, faDownload, faTrash)

const app = createApp(App)
app.component('font-awesome-icon', FontAwesomeIcon)
app.use(createPinia()).use(router).mount('#app')
